import 'package:fish_redux/fish_redux.dart';

enum AlipayViewAction {
  action,
  onWebViewCreate,
  onHandleUrl,
  onPageFinished,
}

class AlipayViewActionCreator {
  static Action onAction() {
    return const Action(AlipayViewAction.action);
  }

  static Action onWebViewCreate(webviewCtr) {
    return Action(AlipayViewAction.onWebViewCreate, payload: webviewCtr);
  }

  static Action onPageFinished() {
    return const Action(AlipayViewAction.onPageFinished);
  }

  static Action onHandleUrl(url) {
    return Action(AlipayViewAction.onHandleUrl, payload: url);
  }
}
